On the Duality between Vacuity and Coverage

نویسندگان

  • Orna Kupferman
  • Wenchao Li
  • Sanjit A. Seshia
چکیده

Sanity checks such as vacuity and coverage are used to evaluate the quality of both implementations and specifications. We show formally that vacuity and coverage are dual concepts, studying them in a setting in which both the implementation and the specification are given by circuits. To formalize the duality, we present a range of mutations that one can apply to a circuit and partition them into mutations that add, remove, and modify behaviors. Many mutations correspond to physical and design faults, such as ones in which signals are ignored, flipped, delayed, or stuck at a value, and combinations thereof. For most of the mutations, we exhibit corresponding mutations also in the case where the specification is given as a temporal logic formula. We introduce and study the notion of dual mutations. A mutation μ that adds or modifies behaviors is dual to a mutation μ̃ that removes or modifies behaviors if, for all implementations I and specifications S , satisfaction of S by a mutant implementation Iμ, obtained from I by applying μ, is related to satisfaction by I of a mutant specification Sμ̃, obtained from S by applying μ̃. Thus, the low coverage of I by S , which causes Iμ to satisfy S , is related to the vacuous satisfaction of S by I, which causes I to satisfy Sμ̃. The notion of dual mutations also applies in a setting in which the specification is a temporal logic formula. Beyond the clean theoretical picture that the duality suggests, it offers important applications. First, we obtain new coverage metrics and new definitions of vacuity that have so far been used only in one of the sanity checks. Second, when low coverage is detected with a mutation, a tighter specification can be automatically obtained by applying its dual mutation to the original specification. We present experimental results showing the relevance of tightening specifications to self-checking circuits.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Sanity Checks in Formal Verification

One of the advantages of temporal-logic model-checking tools is their ability to accompany a negative answer to the correctness query by a counterexample to the satisfaction of the specification in the system. On the other hand, when the answer to the correctness query is positive, most model-checking tools provide no additional information. In the last few years there has been growing awarenes...

متن کامل

Vacuity in Testing

In recent years, we see a growing awareness to the importance of assessing the quality of specifications. In the context of model checking, this can be done by analyzing the effect of applying mutations to the specification or the system. If the system satisfies the mutated specification, we know that some elements of the specification do not play a role in its satisfaction, thus the specificat...

متن کامل

Board Compensation and Risk-Taking: The Moderating Role of CEO Duality (Evidence from Banking Industry)

  The purpose of this paper is to explore relationship between board compensation and risk taking with regard to CEO duality in the banking industry. Using a panel data regression model, with regard to optimal contracting and managerial power theory, we examined the data to determine the relationship between board compensation and risk taking of twenty one banks, for the period 2012 to 2018. R...

متن کامل

A Framework for Inherent Vacuity

Vacuity checking is traditionally performed after model checking has terminated successfully. It ensures that all the elements of the specification have played a role in its satisfaction by the design. Vacuity checking gets as input both design and specification, and is based on an in-depth investigation of the relation between them. Vacuity checking has been proven to be very useful in detecti...

متن کامل

A generalization of the Chen-Wu duality into quantale-valued setting

With the unit interval [0,1] as the truth value table, Chen and Wupresented the concept of  possibility computation over dcpos.Indeed, every possibility computation can be considered as a[0,1]-valued Scott open set on a dcpo. The aim of this paper is tostudy Chen-Wu's duality on quantale-valued setting. For clarity,with a commutative unital quantale $L$ as the truth value table, weintroduce a c...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2008